package com.cmcc.waf.report.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @Author zhongxiang
 * @Date 2020/11/18 14:58
 * @Description 分页入参
 */
@Data
@ApiModel(value = "分页请求基类")
public class PageReq {

    @Min(value = 1, message = "pageSize不合法")
    @ApiModelProperty(value = "每页数据展示条数，默认十条")
    private Integer pageSize = 10;

    @Min(value = 1, message = "pageNum不合法")
    @ApiModelProperty(value = "展示第几页，默认第一页")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "是否降序,默认false")
    private boolean desc;

    @ApiModelProperty(value = "是否查询total，默认true")
    private boolean searchTotal = true;
}
